package cn.com.git.workflow.dao;

import cn.com.git.workflow.dao.model.WorkFlow;
import cn.com.git.workflow.service.query.WorkFlowListQuery;

import java.util.List;

/**
  * WorkFlowDAO接口
  * @author zhangzhenfu
  * @Description
  * @date 2020/4/13
*/
public interface WorkFlowDAO {

    WorkFlow selectById(Integer id);

    WorkFlow selectOne(WorkFlowListQuery query);

    int countLimit(WorkFlowListQuery query);

    List<WorkFlow> selectList(WorkFlowListQuery query);

    Integer insertOne(WorkFlow record);

    List<WorkFlow> insertList(List<WorkFlow> list);

    Integer updateOne(WorkFlow record);

    Integer updateLimit(WorkFlow record, WorkFlowListQuery query);

    Integer deleteOne(Integer id);

    Integer deleteLimit(WorkFlowListQuery query);
}